﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebSite.Common.Interfaces.Repositories;
using WebSite.Common.Models.ViewModels;
using WebSite.DAL.Db.Repositories;

namespace WebSite.Controllers
{
    public class ScheduleController : HWBaseController
    {
        private ILayoutRepository _repository;

        public ScheduleController(ILayoutRepository repo)
        {
            _repository = repo;
        }

        public ScheduleController()
            :this(new DbLayoutRepository("DbСontext"))
        {

        }

        //
        // GET: /Schedule/
        [OutputCache(CacheProfile = "StaticPage")]
        public ActionResult Index()
        {
            PageLayoutVM layout = _repository.LoadLayout("schedule");

            return View(layout);
        }

    }
}
